import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class MyOutPutStream {
    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("e:/hello.txt",true)) {
           outputStream.write(96);
           outputStream.write(97);
           outputStream.write(98);
           outputStream.write(99);
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
